Tables [dbo].[OrderProductCrossSellLookup]
Properties
PropertyValue
Row Count1
Created10:31:30 AM Tuesday, March 02, 2010
Last Modified11:40:05 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_OrderProductCrossSellLookup: OrderProductID\CrossSellOrderProductIDForeign Keys FK_OrderProductCrossSellLookup_OrderProduct: [dbo].[OrderProduct].OrderProductIDOrderProductIDint4
No
Cluster Primary Key PK_OrderProductCrossSellLookup: OrderProductID\CrossSellOrderProductIDForeign Keys FK_OrderProductCrossSellLookup_OrderProduct_CrossSell: [dbo].[OrderProduct].CrossSellOrderProductIDCrossSellOrderProductIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OrderProductCrossSellLookup: OrderProductID\CrossSellOrderProductIDPK_OrderProductCrossSellLookupOrderProductID, CrossSellOrderProductID
Yes
Foreign Keys Foreign Keys
NameUpdateDeleteColumns
FK_OrderProductCrossSellLookup_OrderProductCascadeCascadeOrderProductID->[dbo].[OrderProduct].[OrderProductID]
FK_OrderProductCrossSellLookup_OrderProduct_CrossSellCrossSellOrderProductID->[dbo].[OrderProduct].[OrderProductID]
SQL Script
CREATE TABLE [dbo].[OrderProductCrossSellLookup]
(
[OrderProductID] [int] NOT NULL,
[CrossSellOrderProductID] [int] NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[OrderProductCrossSellLookup] ADD CONSTRAINT [PK_OrderProductCrossSellLookup] PRIMARY KEY CLUSTERED ([OrderProductID], [CrossSellOrderProductID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderProductCrossSellLookup] ADD CONSTRAINT [FK_OrderProductCrossSellLookup_OrderProduct] FOREIGN KEY ([OrderProductID]) REFERENCES [dbo].[OrderProduct] ([OrderProductID]) ON DELETE CASCADE ON UPDATE CASCADE
GO
ALTER TABLE [dbo].[OrderProductCrossSellLookup] ADD CONSTRAINT [FK_OrderProductCrossSellLookup_OrderProduct_CrossSell] FOREIGN KEY ([CrossSellOrderProductID]) REFERENCES [dbo].[OrderProduct] ([OrderProductID])
GO
Uses
Used By